import type { AppRouteModule } from '/@/router/types'

import { LAYOUT } from '/@/router/constant'
const IFrame = () => import('/@/views/utils/interfaceUtils.vue')
const utils: AppRouteModule = {
  path: '/utils',
  name: 'utils',
  component: LAYOUT,
  redirect: '/utils/json',
  meta: {
    orderNo: 5,
    icon: 'ion:construct-outline',
    title: '其他工具',
  },
  children: [
    {
      path: 'json',
      name: 'Json',
      component: () => import('/@/views/utils/jsonUtils.vue'),
      meta: {
        // affix: true,
        title: 'JSON编辑工具',
      },
    },
    {
      path: 'link',
      name: 'Link',
      component: () => import('/@/views/utils/shell.vue'),
      meta: {
        title: '远程连接工具',
      },
    },
    {
      path: 'test',
      name: 'Test',
      component: IFrame,
      meta: {
        title: '接口测试工具',
        frameSrc: 'https://www.antdv.com/docs/vue/introduce-cn/',
      },
    },
    {
      path: 'pressure-Test',
      name: 'pressureTest',
      component: () => import('/@/views/utils/pressureTest.vue'),
      meta: {
        title: '压力测试工具',
      },
    },
  ],
}

export default utils
